package org.example.cli.patern;

/**
 * 设备
 * @author ricejson
 */
public class Device {
    private String name;

    public Device(String name) {
        this.name = name;
    }

    public void turnOn() {
        System.out.println(this.name + "turn on");
    }

    public void turnOff() {
        System.out.println(this.name + "turn off");
    }
}
